package com.cn.lf.wx.dacs.bussiness.author.common;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;

public class Constant {

	@Autowired
	private static Environment env;
	
	/**
	 * 缓存Key前辍
	 */
	public static final String CACHE_KEY_OPEN_ID = "OpenId";
	public static final String CACHE_KEY_VER_CODE="vercode";
	/**
	 * 开发模式
	 */ 
	public static final boolean DEV_MODLE = true;
//	public static final String APPID = "wx7d2790b7c22ebcc8";
//	public static final String APPSECRET = "f66b84303ca0a956c2c083388278e4e6";

	/**
	 * 正式模式
	 */ 
	public static final String APPID = "wx2e7090b2f732c4da";
	public static final String APPSECRET = "9f5219e54e2207a1436a977e057c61f5";

	/**
	 * 数据字典type
	 */
	public static final String DICT_TYPE_SYS = "SYS";
	public static final String Img_path = "D:/gzhtp/";
	
	
	/**
	 * 数据字典key
	 */
	
	public static final String DICT_KEY_APP_ID = "APP_ID";
	public static final String DICT_KEY_APP_SECRET = "APP_SECRET";
	public static final String DICT_KEY_TOKEN = "TOKEN";
	public static final String DICT_KEY_ENCODING_AES_KEY = "ENCODING_AES_KEY";
	public static final String DICT_KEY_SUPER_DEPT = "SUPER_DEPT";
	public static final String DICT_KEY_ACCESS_TOKEN = "ACCESS_TOKEN";
	public static final String DICT_KEY_JSAPI_TICKET = "JSAPI_TICKET";
	public static final String DICT_KEY_FACTORY_DEPT = "FACTORY_DEPT";
	
	public enum DataTag {

		INP_PATIENT("INP_PATIENT"), INP_VISIT("INP_VISIT"), INP_ORDERS("INP_ORDERS"), INP_DIAGNOSIS("INP_DIAGNOSIS");
		private String code;
		private DataTag(String code) {
			this.code = code;
		}

		public String getCode() {
			return this.code;
		}
	}
	
	public static final String[] esdrbytime = {"INP_DIAGNOSIS","INP_ORDERS","INP_PATIENT","INP_VISIT","OUTP_DIAGNOSIS","OUTP_ORDERS","OUTP_VISIT","LIS_LAB","PACS_EXAM","D_PATHOLOGICALINFO","OUTP_EMR","INP_ADM","PRE_COURSE_DIS","COURSE_DIS","OPERATION_RECORD","DISCHARGE_RECORD_24","EMR_TEXT","SIGNS"};
	
	public static final String[] esdrnotime = {"IM_CARE_SITE","IM_CONDITION_DICT","IM_DEPARTMEMT","IM_DRUG_DICT","IM_ITEM_DICT","IM_PROCEDURE_DICT","IM_PROVIDER"};
	

	
}
